﻿using System;
using System.Collections.Generic;
using System.Linq;
using ComputerVision.Data;
using ComputerVision.Data.Repositories;

namespace ComputerVision.Services.User
{
    public class UserService : IService<aspnet_Users>
    {
        private readonly IEntityRepository<aspnet_Users> _useRepository;

        public UserService(IEntityRepository<aspnet_Users> useRepository)
        {
            _useRepository = useRepository;
        }

        public aspnet_Users Create(aspnet_Users t)
        {
            throw new NotImplementedException();
        }

        public aspnet_Users Update(aspnet_Users t)
        {
            throw new NotImplementedException();
        }

        public aspnet_Users Detail(Guid id)
        {
            aspnet_Users item = _useRepository.Get(id);
            return item;
        }

        public aspnet_Users Detail(int id)
        {
            aspnet_Users item = _useRepository.Get(id);
            return item;
        }

        public List<aspnet_Users> ToList()
        {
            var item = _useRepository.GetAll().ToList();
            return item;
        }

        public void Delete(aspnet_Users t)
        {
            throw new NotImplementedException();
        }
    }
}
